package com.fintech.third.edczxutil.handle;

import java.text.SimpleDateFormat;
import java.util.Date;

public class HandleString2Date implements TypeHandle<String,Date>{

	@Override
	public Date handle(String object) {
		Date date=null;
		if(null!=object&&!"".equals(object)){
			try {
				SimpleDateFormat sdf=new SimpleDateFormat("yyyy.MM.dd");//小写的mm表示的是分钟 
				date=sdf.parse(object);   
			} catch (Exception e) {
				e.printStackTrace();
			}
			return date;
		}
		return date;
		
		//SimpleDateFormat fmt =new  SimpleDateFormat("yyyy.MM.dd");
		
	}


}
